{"componentChunkName":"component---node-modules-gatsby-theme-chronoblog-src-templates-post-js","path":"/unifi-cloud-key-fix/","result":{"data":{"mdx":{"id":"dea4c421-71f0-5306-9c1b-27f7c51b9416","excerpt":"In general , I've been very happy with my  Unifi cloud key  for managing my Unifi network, but there have been 2 occasions over the past…","frontmatter":{"title":"How to fix an unresponsive Unifi Cloud Key","date":"2020-01-17T00:00:00.000Z","description":"If your Unifi cloud key has a white led, is unresponsive, or hanging at login read on to learn how to fix it.","tags":["ubiquiti","unifi","networking","post"],"cover":{"childImageSharp":{"fluid":{"base64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAALCAYAAAB/Ca1DAAAACXBIWXMAAAsTAAALEwEAmpwYAAABt0lEQVQoz31Sa2+CQBDs//81/UKTpmo19mE0VqhCVPCBYEStPEQQ8HB6ey1Wa9pNNrvZu5ubnd2bNE2RZRm22y3iOMZ+vxeeJAnCMEQUReKc7hV3f/v52U1RME1TPCZQilSbz+cYj8fI81x8kPBa8v24iOf5CZAYaZoG13XheZ5wYmcYBvr9PoAjcnYAcnL2nTMci9qRgR2+iF0BBkGA9XrNJQgxGo1g6ENMPyJUVRtPAwcvQweq7aKhL9GZriFzl2QL46UvPrgA9H0fuq7jsVoVOQHqwyFsN4bUMXGnWLjt2ChrDu6VGaYcxPrYQrU28MIYh0N2DTiZTNDt9bDb7UTLBOj4MZqGA9ny8fyu476pQeE52ZFl/7dM0yYnDYnhl4ZkOV7rNchvbfSUDh7LD7AsS5ykafb3UHw/gMeZFoCDwYCPBJAkCbKiYLlcIeKbYM5mKJVKqNfrF+tzCbjZiGEEHIwASU9ap263i0ajIdisVissFgsURu9qtZrIabWuGQY/DAmQNCWmlUpF7KSYPNeWmFPearXQbrevAVVVxYYzpMEUe3iuoW3bgi3pNuPtFpFqjLFTy5/ORDgDfvZsuQAAAABJRU5ErkJggg==","aspectRatio":1.7777777777777777,"src":"/static/fa9019a186d25f41129a7744c60b9b74/59c68/cloudkey.png","srcSet":"/static/fa9019a186d25f41129a7744c60b9b74/57ab0/cloudkey.png 192w,\n/static/fa9019a186d25f41129a7744c60b9b74/f4739/cloudkey.png 384w,\n/static/fa9019a186d25f41129a7744c60b9b74/59c68/cloudkey.png 609w","srcWebp":"/static/fa9019a186d25f41129a7744c60b9b74/2911b/cloudkey.webp","srcSetWebp":"/static/fa9019a186d25f41129a7744c60b9b74/ae504/cloudkey.webp 192w,\n/static/fa9019a186d25f41129a7744c60b9b74/fef30/cloudkey.webp 384w,\n/static/fa9019a186d25f41129a7744c60b9b74/2911b/cloudkey.webp 609w","sizes":"(max-width: 609px) 100vw, 609px","presentationWidth":609,"presentationHeight":341},"resize":{"src":"/static/fa9019a186d25f41129a7744c60b9b74/c4ecb/cloudkey.png"}}}},"fields":{"slug":"/unifi-cloud-key-fix/"},"body":"var _excluded = [\"components\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n/* @jsxRuntime classic */\n/* @jsx mdx */\n\nvar _frontmatter = {\n  \"title\": \"How to fix an unresponsive Unifi Cloud Key\",\n  \"cover\": \"./cloudkey.png\",\n  \"date\": \"2020-01-17T00:00:00.000Z\",\n  \"description\": \"If your Unifi cloud key has a white led, is unresponsive, or hanging at login read on to learn how to fix it.\",\n  \"tags\": [\"ubiquiti\", \"unifi\", \"networking\", \"post\"]\n};\nvar makeShortcode = function makeShortcode(name) {\n  return function MDXDefaultShortcode(props) {\n    console.warn(\"Component \" + name + \" was not imported, exported, or provided by MDXProvider as global scope\");\n    return mdx(\"div\", props);\n  };\n};\nvar Embed = makeShortcode(\"Embed\");\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n    props = _objectWithoutProperties(_ref, _excluded);\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"p\", null, mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"In general\"), \", I've been very happy with my \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://amzn.to/3fcuniL\"\n  }, \"Unifi cloud key\"), \" for managing my Unifi network, but there have been 2 occasions over the past couple years where the cloud key has encountered \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"unrecoverable failures\"), \".\"), mdx(\"p\", null, \"In both cases, the cloud key's status LED was showing a white LED light instead of the normal blue. \"), mdx(\"p\", null, \"When this occurs I'm unable to login to the unifi controller software's web interface. It hangs at login indefinetly after submitting my username and password.\"), mdx(\"blockquote\", null, mdx(\"p\", {\n    parentName: \"blockquote\"\n  }, \"The cloud key uses a mongo database that does not handle sudden shutdowns very well. \")), mdx(\"p\", null, \"This means any time there is a power loss you are at risk of corrupting the cloud key's mongo database \\uD83D\\uDE22\"), mdx(\"p\", null, \"The first time my cloud key failed my neighborhood was dealing with semi-frequent blackouts for 4 hours at a time before the power utility could restore power--some sort of underground powerline issue.\"), mdx(\"p\", null, \"As a workaround, I ended up buying an \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://amzn.to/3aT6Qj8\"\n  }, \"APC UPS 1500VA UPS\"), \" that let's you connect another battery to it which gave me a ridiculous uptime for my modem + USG + US-8-60W switch + UAP AC Pro + UC-CK cloud key at 8 hours. I might not have power, but I'll have the internet to keep me distracted all day \\uD83D\\uDE02\"), mdx(\"p\", null, \"The workaround worked well until a couple weeks ago when it randomly happened again without a power outage as the cause.\"), mdx(\"p\", null, \"So, for my future self, and the benefit of others, below are the steps to recover your UC-CK cloud key.\"), mdx(Embed, {\n    src: \"https://www.youtube.com/embed/OdyedKhqW8M\",\n    mdxType: \"Embed\"\n  }), mdx(\"h2\", {\n    \"id\": \"solution-1-try-restarting-the-unifi-service\"\n  }, \"Solution 1: Try restarting the Unifi Service\"), mdx(\"p\", null, \"Using \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"ssh\"), \", ssh to \", mdx(\"em\", {\n    parentName: \"p\"\n  }, \"yourUsername\"), \"@\", mdx(\"em\", {\n    parentName: \"p\"\n  }, \"theIpAddressOfYourCloudKey\")), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-sh\"\n  }, \"sudo service unifi restart\\n\")), mdx(\"p\", null, \"or\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-sh\"\n  }, \"/sbin/ubnt-systool reboot\\n\")), mdx(\"p\", null, \"If that doesn't work you'll need to go to solution 2, resetting to defaults and restoring from backup.\"), mdx(\"h2\", {\n    \"id\": \"solution-2-reset-the-cloud-key-to-defaults-and-restoring-settings-from-backup\"\n  }, \"Solution 2: Reset the cloud key to defaults and restoring settings from backup\"), mdx(\"blockquote\", null, mdx(\"p\", {\n    parentName: \"blockquote\"\n  }, \"This wipes out all the backups stored on your cloud key so move them off the cloud key before proceeding\")), mdx(\"ol\", null, mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Use a tool like WinSCP to connect to your cloud key's filesystem.\"), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Change to \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"/data/autobackup\")), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Verify you have backups there. Download them somewhere safe--not on the cloud key.\"), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Using \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"ssh\"), \" login to ssh \", mdx(\"em\", {\n    parentName: \"li\"\n  }, \"yourUsername\"), \"@\", mdx(\"em\", {\n    parentName: \"li\"\n  }, \"theIpAddressOfYourCloudKey\")), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Run reset2defaults\")), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-sh\"\n  }, \"/sbin/ubnt-systool reset2defaults\\n\")), mdx(\"ol\", {\n    \"start\": 6\n  }, mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"After a good amount of time your cloud key will restart and will likely have a different IP address.\"), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Use the \", mdx(\"a\", {\n    parentName: \"li\",\n    \"href\": \"https://www.ui.com/download/utilities/default/default/ubiquiti-discovery-tool-chrome-extension/\"\n  }, \"ubiquiti device discovery tool - chrome extension\"), \" to find your cloud key's new ip address on the network.\"), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Navigate to http://\", mdx(\"em\", {\n    parentName: \"li\"\n  }, \"theIpAddressOfYourCloudKey\"), \" and login as \", mdx(\"em\", {\n    parentName: \"li\"\n  }, \"root\"), \" / \", mdx(\"em\", {\n    parentName: \"li\"\n  }, \"ubnt\")), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Select the option to restore from your backup and point to the saved backup from earlier.\")), mdx(\"p\", null, \"This \", mdx(\"em\", {\n    parentName: \"p\"\n  }, \"should\"), \" restore everything back like you had it. If you see oddities in the unifi dashboard like missing a USG just give it more time to catch up.\"), mdx(\"blockquote\", null, mdx(\"p\", {\n    parentName: \"blockquote\"\n  }, \"But what if my backups have a an newer, incompatible, firmware version than what the cloud key reset to? \\uD83D\\uDE31\")), mdx(\"p\", null, \"This happened to me. The reset put me on an older ubiquiti firmware version than the cloud key backups somehow. To use the backups you need to upgrade your cloud key firmware to the same version.\"), mdx(\"ol\", null, mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Using \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"ssh\"), \" login to ssh://root@\", mdx(\"em\", {\n    parentName: \"li\"\n  }, \"theIpAddressOfYourCloudKey\"), \" password \", mdx(\"em\", {\n    parentName: \"li\"\n  }, \"ubnt\")), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Navigate to the \", mdx(\"a\", {\n    parentName: \"li\",\n    \"href\": \"https://www.ui.com/download/unifi/\"\n  }, \"ubiquiti downloads site\"), \" and locate the firmware version that matches your backup.\"), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Note the url path to the \", mdx(\"em\", {\n    parentName: \"li\"\n  }, \".deb\"), \" file of the firmware.\"), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"In the ssh terminal\")), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-sh\"\n  }, \"cd /tmp\\nwget *path you copied to the .deb file here*\\ndpkg -i unifi_sysvinit_all.deb\\n\")), mdx(\"p\", null, \"Once that finishes installing\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-sh\"\n  }, \"rm unifi_sysvinit_all.deb\\n\")), mdx(\"ol\", {\n    \"start\": 5\n  }, mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Navigate to http://\", mdx(\"em\", {\n    parentName: \"li\"\n  }, \"theIpAddressOfYourCloudKey\"), \" and login as username: \", mdx(\"em\", {\n    parentName: \"li\"\n  }, \"root\"), \" password: \", mdx(\"em\", {\n    parentName: \"li\"\n  }, \"ubnt\")), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Select the option to restore from your backup and point to the saved backup from earlier.\"), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Login to the cloud key's website using your original credentials (now that it restored the backup) and change your ip address for the cloud key back to what it was originally.\")), mdx(\"p\", null, \"Your Unifi cloud key's LED light should now be back to blue from white, responsive, and working with your old configuration again. \"), mdx(\"h2\", {\n    \"id\": \"next-steps-best-solution\"\n  }, \"Next steps: Best Solution\"), mdx(\"p\", null, \"Since the original release Ubiquiti has put out the \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://amzn.to/2NwRUyz\"\n  }, \"Unifi Cloud Key Gen2\"), \" which largely solves this problem by including a backup battery that allows it to safely shut down when the power goes out.\"), mdx(\"p\", null, \"I'll be \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://amzn.to/2NwRUyz\"\n  }, \"upgrading\"), \" to that shortly and reporting back. Thanks for reading.\"));\n}\n;\nMDXContent.isMDXComponent = true;"}},"pageContext":{"id":"dea4c421-71f0-5306-9c1b-27f7c51b9416"}},"staticQueryHashes":["1961101537","2542493696"]}